#!/bin/bash
#搜索匹配字符替换

sed -i "s/works.*/ys\/dd       -fstype=ext4,rw :UUID=748ffabf-af54-4ded-8546-c7239266dce6/g" ./smb.txt

# 添加字符到末尾 /etc/auto.master
sed -i '$a \/mnt/nas  /etc/smb.txt  --timeout 600' /etc/auto.master

hhd       -fstype=ext4,rw :UUID=0fb33865-a5e5-485b-9f96-37fbf120bc55
smb       -fstype=cifs,rw,username=smb,password=1813033378 ://192.168.2.252/ssd-disk
date       -fstype=cifs,rw,username=smb,password=1813033378 ://192.168.2.252/date
work       -fstype=ext4,rw :UUID=748ffabf-af54-4ded-8546-c7239266dce6




